package A14;

public abstract class Payment {
    private double amount; // 支付金额

    public Payment(double amount) {
        this.amount = amount;
    }

    // getter/setter
    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }
}